<template>
  <div class="bathroom-project-page">
    <!-- 新增的固定页眉部分 -->
    <header class="site-header">
      <div class="header-content-wrapper">
        <!-- <img src="https://betterhome.live/img/logo/default.svg" alt="Company Logo" class="header-logo" /> -->
                <!-- <img src="https://betterhome.live/img/logo/default.svg" alt="Company Logo" class="header-logo" /> -->

        <button @click="getQuotes" class="header-button">Get Free Quotes</button>
      </div>
    </header>

    <div class="content-wrapper">
      <h1 class="main-title">YOUR BATHROOM PROJECT STARTS HERE</h1>

      <p class="intro-text">
        Upgrade to the bath of your dreams. Try our services and get one step closer to the
        bath you've been waiting for.
      </p>

      <!-- 注意这里图片路径是 .png，请确保你的图片格式一致 -->
      <img
        src="@/assets/bathroom-installer.png"
        alt="Man installing bathroom fixtures in a modern bathroom"
        class="main-image"
      />

      <!-- 更新后的第一个 body-text 段落 -->
      <p class="body-text">
         you can conveniently compare prices among bathroom products
        and services unique to your area, all for free. If you or someone you know
        is in the market for a bathroom update, makes it easier than ever
        to find the right local pros to help you with a new tub, tub conversion, or
        complete bathroom remodeling!
      </p>

      <!-- 更新后的第二个 body-text 段落，包含Why Choose Us？及后续说明 -->
      <p class="body-text">
        <strong>Why Choose Us？</strong>
      </p>
      <p class="body-text">
        Top-Quality Materials: We use high-end brands and durable materials to ensure long-lasting bathrooms.
        Custom Designs: Tailored design solutions to seamlessly integrate your new bathroom into your home.
        Expert Team: Our experienced designers and construction teams pay attention to every detail.
        Efficient Construction: Fast and efficient, we complete your remodel with minimal disruption to your daily life.
      </p>
      
      <p class="body-text"><strong>Here's How You Do It:  </strong></p>
      <!-- 新增的有序列表，用于展示步骤 -->
      <ol class="body-text process-list">
        <li>Go onto the  questionnaire and answer a couple of questions. It just takes two minutes and is completely free!</li>
        <li>Once you complete a few questions (about 60 seconds) you will be presented with choices and rates you never thought possible (no login required). Enjoy your savings!</li>
      </ol>

      <!-- 更新后的最后一个段落 -->
      <p class="body-text last-paragraph">
        Whether you’re just getting started on your project or ready to hire an expert, we can help.
      </p>

      <button @click="getQuotes" class="quote-button">Get Free Quotes</button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'BathroomProject',
  // 在这里添加 metaInfo 属性
  metaInfo: {
    meta: [
      {
        'http-equiv': 'delegate-ch',
        content: 'sec-ch-ua https://cheputyaimunting.com; sec-ch-ua-mobile https://cheputyaimunting.com; sec-ch-ua-arch https://cheputyaimunting.com; sec-ch-ua-model https://cheputyaimunting.com; sec-ch-ua-platform https://cheputyaimunting.com; sec-ch-ua-platform-version https://cheputyaimunting.com; sec-ch-ua-bitness https://cheputyaimunting.com; sec-ch-ua-full-version-list https://cheputyaimunting.com; sec-ch-ua-full-version https://cheputyaimunting.com'
      }
    ],
    // 注意：style 标签在这里使用 cssText
    style: [
      { type: 'text/css', cssText: '.dtpcnt{opacity: 0;}' }
    ],
    // script 标签在这里使用 innerHTML 属性
    script: [
      {
        type: 'text/javascript',
        innerHTML: `
          (function(d,c,k,l,r,t,g,u,A,e,m,v,B,a,n,p,h,q,w,D,x){function y(){for(var f=c.querySelectorAll(".dtpcnt"),b=0,a=f.length;b<a;b++)f[b][u]=f[b][u].replace(/(^|\\s+)dtpcnt($|\\s+)/g,"")}function C(a,b,d,e){var f=new Date;f.setTime(f.getTime()+(e||864E5));c.cookie=a+"="+b+"; "+d+"samesite=Strict; expires="+f.toGMTString()+"; path=/";k.setItem(a,b);k.setItem(a+"-expires",f.getTime())}function z(a){var b=c.cookie.match(new RegExp("(^| )"+a+"=([^;]+)"));return b?b.pop():k.getItem(a+"-expires")&&+k.getItem(a+
"-expires")>(new Date).getTime()?k.getItem(a):null}x="https:"===d.location.protocol?"secure; ":"";d[e]||(d[e]=function(){(d[e].q=d[e].q||[]).push(arguments)},p=c[r],c[r]=function(){p&&p.apply(this,arguments);if(d[e]&&!d[e].hasOwnProperty("params")&&/loaded|interactive|complete/.test(c.readyState))for(;a=c[t][m++];)/\\/?click\\/?($|(\\/[0-9]+)?$)/.test(a.pathname)&&(a[g]="javascrip"+d.postMessage.toString().slice(4,5)+":"+e+'.l="'+a[g]+'",void 0')},setTimeout(function(){(q=/[?&]cpid(=([^&#]*)|&|#|$)/.exec(d.location.href))&&
q[2]&&(h=q[2],w=z("vl-"+h));var f=z("vl-cep"),b=location[g];if("savedCep"===B&&f&&(!h||"undefined"===typeof h)&&0>b.indexOf("cep=")){var e=-1<b.indexOf("?")?"&":"?";b+=e+f}a=c.createElement("script");n=c.scripts[0];a.defer=1;a.src=v+(-1===v.indexOf("?")?"?":"&")+"lpref="+l(c.referrer)+"&lpurl="+l(b)+"&lpt="+l(c.title)+"&vtm="+(new Date).getTime()+(w?"&uw=no":"");a[A]=function(){for(m=0;a=c[t][m++];)/dtpCallback\\.l/.test(a[g])&&(a[g]=decodeURIComponent(a[g]).match(/dtpCallback\\.l="([^"]+)/)[1]);y()};
n.parentNode.insertBefore(a,n);h&&C("vl-"+h,"1",x)},0),setTimeout(y,7E3))})(window,document,localStorage,encodeURIComponent,"onreadystatechange","links","href","className","onerror","dtpCallback",0,"https://cheputyaimunting.com/d/.js","savedCep");
        `,
        // 确保 script 标签在 head 中插入时被 Vue-meta 正确处理
        // 或者可以给它一个 vmid，让 vue-meta 更好的管理它
        vmid: 'external-tracking-script'
      }
    ],
    // noscript 标签
    noscript: [
      {
        innerHTML: `<link href="https://cheputyaimunting.com/d/.js?noscript=true&lpurl=" rel="stylesheet"/>`
      }
    ]
  },
  methods: {
    getQuotes() {
      window.location.href = 'https://cheputyaimunting.com/click';
    }
  }
}
</script>

<style scoped>
/* ... 你的 CSS 样式保持不变 ... */
.bathroom-project-page {
  font-family: Arial, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column; /* 让子元素垂直排列 */
  align-items: center; /* 在横向上居中内容 */
  /* padding-top 需要等于固定页眉的高度，以避免内容被遮挡 */
  /* 假设logo高50px，上下内边距各15px，总高 50 + 15*2 = 80px */
  padding-top: 60px;
  background-color: #fff;
  /* 移除原有的 padding: 40px 20px; 因为 top padding 被 sticky header 占用，左右 padding 移至 content-wrapper */
}

/* 固定页眉样式 */
.site-header {
  position: fixed; /* 固定定位 */
  top: 0; /* 距离顶部0 */
  left: 0; /* 距离左侧0 */
  width: 100%; /* 宽度100% */
  background-color: #fff; /* 背景色，确保遮盖下方内容 */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 添加阴影增加层次感 */
  z-index: 1000; /* 确保在其他内容之上 */
}

.header-content-wrapper {
  display: flex;
  justify-content: space-between; /* Logo和按钮分列左右 */
  align-items: center; /* 垂直居中对齐 */
  max-width: 800px; /* 与内容区域保持一致的最大宽度 */
  margin: 0 auto; /* 居中显示 */
  padding: 15px 20px; /* 内边距，20px用于左右间距，与内容区一致 */
  box-sizing: border-box; /* 确保padding不会增加元素的总宽度 */
}

.header-logo {
  height: 50px; /* 调整logo的高度 */
  width: auto; /* 保持图片比例 */
  display: block;
}

.header-button {
  /* 复用 .quote-button 的大部分样式 */
  background-color: #00be9c;
  color: #fff;
  border: 1px solid #00be9c;
  padding: 10px 25px; /* 稍微小一点的内边距，适合顶部按钮 */
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.header-button:hover {
  background-color: #00a588;
  border-color: #00a588;
}

.content-wrapper {
  max-width: 800px;
  width: 100%;
  text-align: center;
  /* 这里添加左右padding，因为 bathroom-project-page 的 padding-top 被 sticky header 占用 */
  padding: 0 20px;
  /* margin-top: 30px; /* 可以根据需要调整主标题和 header 之间的间距 */
}


.main-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-top: 30px; /* 增加主标题上边距，因为它现在是 content-wrapper 的第一个元素 */
  margin-bottom: 20px;
  color: #333;
}

.intro-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.main-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.body-text {
  font-size: 1em;
  line-height: 1.8;
  text-align: left;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 为新的有序列表添加一些间距 */
.process-list {
  list-style-type: decimal; /* 确保是数字列表 */
  padding-left: 25px; /* 添加左边距以便数字显示 */
  margin-bottom: 20px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.process-list li {
  margin-bottom: 10px;
  line-height: 1.8;
}


.body-text.last-paragraph {
  margin-bottom: 40px;
}

.quote-button {
  background-color: #00be9c; /* ✅ 新的背景颜色 */
  color: #fff; /* ✅ 新的文字颜色（白色） */
  border: 1px solid #00be9c; /* ✅ 边框颜色也改成和背景色一致 */
  padding: 12px 30px;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
  display: inline-block;
}

.quote-button:hover {
  background-color: #00a588; /* ✅ 鼠标悬停时稍微变深一点的颜色 */
  border-color: #00a588; /* ✅ 边框也同步变深 */
}
</style>